<?php
$list = $SQL->query('SELECT * FROM players WHERE players.group_id > 1 ORDER BY group_id DESC');
$showed_players = 0;
$groups = simplexml_load_file($config['site']['server_path'].'/data/XML/groups.xml') or die('<b>Could not load groups!</b>'); 
        foreach($groups->group as $g) 
            $groupList[(int)$g['id']] = $g['name']; 

$main_content .= '<center><h2>Support in game</h2></center>';
$main_content .= "<table border='0' cellspacing='1' cellpadding='4' width='100%'>
	<tr bgcolor=\"".$config['site']['vdarkborder']."\">
	<td colspan=3><font class='white'><b>".$config['server']['serverName']." Members</b></font></td>";
$main_content .='
<tr bgcolor="'.$config['site']['darkborder'].'">
	<td width="90%" colspan="2"><b>Player Name</b></td>
	<td>&nbsp;</td>
</tr>';
foreach($list as $gm) {
if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .= '
<tr bgcolor="' . $bgcolor . '">
	<td>' . $gm['name'] . ',&nbsp;' . $groupList[(int)$gm['group_id']] . '</td>
	<td>&nbsp;</td>
	<td><a href="index.php?subtopic=characters&name='.urlencode($gm['name']).'"><img src="'.$layout_name.'/images/buttons/sbutton_view.gif" /></a></td>
</tr>';
}
if (!$gm){
$main_content .='
<tr bgcolor="' . $config['site']['lightborder'] . '">
<td colspan="3"><center><i>This server no have members on staff list !</i></center></td>
</tr>
';
}
$main_content .= '</table>';
?>